package com.firebird.app.fejpsl.ui.activity.me;

import android.content.Intent;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.firebird.app.fejpsl.base.BaseTbActivity;
import com.firebird.app.fejpsl.R;

public class StatsticalInfoActivity extends BaseTbActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.me_statstical_info);
        initView();
        initListener();
    }
    private void initListener() {
        TextView mPlatformIntegralField=(TextView)findViewById(R.id.mPlatformIntegralField);
        mPlatformIntegralField.setOnClickListener( new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(StatsticalInfoActivity.this, StaIntegralFieldActivity.class);
                startActivity(intent);
            }
        });
    }
    private void initView(){
        Resources r=this.getResources();
        Drawable drawable=r.getDrawable(R.drawable.back);
        drawable.setBounds(0, 0, 120, 120);
        View view= LayoutInflater.from(this).inflate(R.layout.layout_toolbar,null);
        TextView tv_back=(TextView)findViewById(R.id.tv_back);
        tv_back.setCompoundDrawables(drawable, null, null, null);
        setBack();
        String titleName = r.getString(R.string.platform_integral_field);
        setTitle(titleName);

    }
}
